<?php 
namespace app\admin\validate;
use \think\Validate;

class User extends Validate
{
	protected $rule =[ 
	/*'u_tel' => 'require|max:11',*/
	'u_num'=>['/(^\d(15)$)|((^\d{18}$))|(^\d{17}(\d|X|x)$)/'],

       ];

        protected $message = [
        'u_num'=> '非法身份证号，请仔细核实',
    ];
}
 